package com.atguigu.qqzone.service;

import com.atguigu.qqzone.pojo.Reply;
import com.atguigu.qqzone.pojo.Topic;

import java.util.List;

/**
 * @InterfaceName: ReplyService
 * @Description:
 * @Author: wty
 * @Date: 2022/12/9
 */

public interface ReplyService {

    /**
     * 获取指定日志的回复列表
     *
     * @param topicId
     * @return
     */
    public List<Reply> getReplyListByTopicId(Integer topicId);

    /**
     * 添加回复
     *
     * @param reply
     */
    public void addReply(Reply reply);


    /**
     * 删除回复
     *
     * @param id
     */
    public void delReply(Integer id);

    /**
     * @param
     * @return com.atguigu.qqzone.pojo.Reply
     * @description //根据Id获取reply
     * @param: id
     * @date 2022/12/11 23:49
     * @author wty
     **/
    public Reply getReply(Integer id);

    /**
     * @param
     * @return void
     * @description //删除指定日志的所有回复
     * @param: topic
     * @date 2022/12/12 0:44
     * @author wty
     **/
    public void delReplyList(Topic topic);
}
